package me.shurufa.utils;

/**
 * 常量
 *
 * @FileName: me.shurufa.utils.Constants.java
 * @author: kHRYSTAL
 * @email: 723526676@qq.com
 * @date: 2016-01-14 18:53
 */
public class Constants {
    public static final String TencentAppId = "";

    public static final String SinaAppKey = "";

    public static final String SinaAppRedirectURI = "http://shurufa.me";

    public static final String SinaScope = "";

    public static final String WECHAT_KEY = "";

    public static final String BAIDU_KEY = "";


    public static final int SMS_COUNT_DOWN_TIME = 60;
//    Handler code
    public static final int CODE_TOAST = 97;
    public static final int REQUEST_NOTE_CODE = 98;
    public static final int REQUEST_SKIP_BOOKCONIFG_CODE = 99;

//    Chat
    public static final int HAS_READ = 1;
    public static final int NOT_READ = 0;
    public static final long BIG_TIME = 4070880000000L;

//    Search Type
    public static final int SEARCH_BY_ISBN = 0;
    public static final int SEARCH_BY_KEYWORD = 1;

//Event ACTION
    //fragment 刷新
    public static final String ACTION_FRAGMENT_REFRESH = "me.shurufa.action_fragment_refresh";
    //微信登陆
    public static final String ACTION_WECHAT_LOGIN = "me.shurufa.action_wechat_login";
    //切换登陆页面fragment
    public static final String ACTION_LOGIN_SWITCH = "me.shurufa.action_login_switch";
    //切换主页面fragment
    public static final String ACTION_MAIN_SWITCH = "me.shurufa.action_main_switch";
    //用户注销
    public static final String ACTION_USER_CHANGE = "me.shurufa.action_user_change";
    //消费积分
    public static final String ACTION_POINTS_CHANGE = "me.shurufa.action_points_change";

    //书架页面刷新
    public static final String ACTION_BOOKSHELVES_REFRESH = "me.shurufa.action_bookshelves_refresh";

    //发现页加载完成
    public static final String ACTION_DISCOVER_REFRESH_COMPLETE= "me.shurufa.action_discover_refresh";

    //打开书架的收藏PopupWindow
    public static final String ACTION_SHELVES_FAVOURITE = "me.shurufa.action_shelves_favourite";

    //BookCommentFragment刷新
    public static final String ACTION_BOOKINFO_COMMENT_REFRESH = "me.shurufa.action_bookinfo_comment_refresh";

    //从书架跳转到图书信息点击添加评价后图书信息界面接收行为
    public static final String ACTION_BOOKINFO_ADD_COMMENT = "me.shurufa.action_bookinfo_add_comment";

    //通知Activity弹出编辑书摘PopupWindow
    public static final String ACTION_EDIT_MY_DIGEST = "me.shurufa.action_edit_my_digest";
    //通知列表替换修改后的数据
    public static final String ACTION_MODIFY_MY_DIGEST = "me.shurufa.action_modify_my_digest";
    //
    public static final String ACTION_WRITE_NOTE = "me.shurufa.action_write_note";
    //通知列表删除书摘
    public static final String ACTION_REMOVE_MY_DIGEST = "me.shurufa.action_remove_my_digest";
    //通知BitmapTransformActivity|BitmapTransformActivity&AddDigestActivity
    //添加书摘成功 finish 通知MainActivity切换到书架页面
    public static final String ACTION_ADD_DIGEST_COMPLETE = "me.shurufa.action_add_digest_complete";
    public static final String ACTION_ADAPTER_NOTIFY = "me.shurufa.action_adapter_notify";



//Intent Extra key
    public static final String EXTRA_CAMERA_PHOTO = "me.shurufa.photo.path";
    public static final String EXTRA_POINTS = "me.shurufa.points";
    public static final String EXTRA_SWITCH_INDEX = "me.shurufa.switch.index";
    public static final String EXTRA_FROM_CAMERA = "me.shurufa.from.camera";
    public static final String EXTRA_SCAN_RESULT = "me.shurufa.scan.result";
    public static final String EXTRA_AVATAR_PATH = "me.shurufa.avatar.path";
    public static final String EXTRA_USER_PARAM = "me.shurufa.user.param";
    public static final String EXTRA_SEARCH_TYPE = "me.shurufa.search.type";

//    newInstance for Fragment arguments
    public static final String ARG_BOOK_ID = "me.shurufa.argument.bookid";
    public static final String ARG_BOOK_TITLE = "me.shurufa.agrument.booktitle";
    public static final String ARG_USER_ID = "me.shurufa.argument.userid";
    public static final String ARG_MENU_ID = "me.shurufa.argument.menuid";
    public static final String ARG_MENU_TITLE = "me.shurufa.argument.menutitle";
    public static final String ARG_BOOK_INFO = "me.shurufa.argument.bookinfo";
    public static final String ARG_FROM_WHERE = "me.shurufa.argument.fromwhere";
    public static final String ARG_EXCERPT_BOOKID = "me.shurufa.argument.excerptbookid";
    public static final String ARG_DIGEST_NOTE = "me.shurufa.argument.digest.note";
    //edit digest
    //发布状态 true为publish false为save
    public static final String ARG_DIGEST_STATE = "me.shurufa.argument.digest.state";
    //书摘内容
    public static final String ARG_DIGEST_CONTENT = "me.shurufa.argument.digest.content";
    public static final String ARG_BOOK = "me.shurufa.argument.book";

//    Event Action
    public static final String EVENT_STAR_BOOK = "me.shurufa.event_star_book";
//    Type of Open(from where)
    public static final int TYPE_FROM_USER_DIGEST_ALL = 22;
    public static final int TYPE_FROM_MY_BOOKSHELVES = 23;
    public static final int TYPE_FROM_MY_BOOKINFO = 24;
    public static final int TYPE_FROM_MY_FAVOURITE = 25;

//    Type of Comment
//    针对书的评论
    public static final int TYPE_COMMENT_BOOK = 90;
//    针对书摘的评论
    public static final int TYPE_COMMENT_DIGEST = 91;
}
